//主页的所有依赖组件
import Home from './components/home/Index.vue'                                              //主页
import Yaoqing from './components/home/content/yaoqing/Yaoqing.vue'
import HotList from './components/home/content/hot/List.vue'                                //热门产品列表页
import HotListDetail from './components/home/content/hot/Detail.vue'                        //热门产品详情页
import InfoList from './components/home/content/information/List.vue'
import InfoDetail from './components/home/content/information/Detail.vue'

//产品库的所有依赖组建
import Product from './components/product/Index.vue'


//发现页的所有依赖组建
import Find from './components/find/Index.vue'
import Helper from './components/find/content/Helper.vue'
import Picture from './components/find/content/Helper/Picture.vue'
import Zixun from './components/find/content/Helper/Zixun.vue'
import Jitang from './components/find/content/Helper/Jitang.vue'
import Zhishi from './components/find/content/Helper/Xiaozhishi.vue'

//我的页面所有依赖组建
import User from './components/user/Index.vue'
import UserInfo from './components/user/content/UserInfo.vue'
import EditUserInfo from './components/user/content/EditUserInfo.vue'
import Alert from './components/user/content/Alert.vue'
import UserReserve from './components/user/content/UserReserve.vue'
import Customer from './components/user/content/Customer.vue'

export default [
    { 
        path: "*", 
        redirect: '/home' 
    },
//路由定向:用户输入未定义路由选项时默认跳转首页
    {
        path: '/',
        component: Home
        //默认路由
    },
//主页路由
    {
        path: '/home',
        component: Home
        //主页路由
    },
    {
        path: '/home/yaoqing',
        component: Yaoqing
        //邀请路由
    },
    {
        path: '/home/hot/detail',
        component: HotListDetail
        //热门产品详情
    },
    {
        path: '/home/hot',
        component: HotList,
        //热门产品路由
    },
    {
        path: '/home/info/list',
        component: InfoList
        //热门产品详情
    },
    {
        path: '/home/info/detail',
        component: InfoDetail
        //热门产品详情
    },

//产品库页面路由
    {
        path: '/product',
        component: Product
        //产品库路由
    },

//发现页路由
    {
        path: '/find',
        component: Find
        
    },
    {
        path: '/find/helper',
        component: Helper
        
    },
    {
        path: '/find/helper/pic',
        component: Picture
        
    },
    {
        path: '/find/helper/zixun',
        component: Zixun
        
    },
    {
        path: '/find/helper/jitang',
        component: Jitang
        
    },
    {
        path: '/find/helper/zhishi',
        component: Zhishi
        
    },

//我的页面路由
    {
        path: '/user',
        component: User
        
    },
    {
        path: '/user/userinfo',
        component: UserInfo
    },
    {
        path: '/user/reserve',
        component: UserReserve
    },
    {
        path: '/user/Customer',
        component: Customer  
    },
    {
        path: '/user/edit',
        component: EditUserInfo  
    },
    {
        path: '/user/alert',
        component: Alert
    }

]